package com.jyu.hakkatranslation.service.Impl;

import com.jyu.hakkatranslation.mapper.WordEntryMapper;
import com.jyu.hakkatranslation.pojo.WordEntry;
import com.jyu.hakkatranslation.service.SearchService;
import com.jyu.hakkatranslation.vo.entryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SearchServiceImpl implements SearchService {
    @Autowired
    WordEntryMapper wordEntryMapper;
    @Override
    public List<WordEntry> searchWordEntry(entryVo entryVo) {
        List<WordEntry> wordEntries = wordEntryMapper.SelectWordByMandarin(entryVo);
        return wordEntries;
    }
}
